home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Freeware 2002 November
/
SGI Freeware 2002 November - Disc 1.iso
/
dist
/
fw_cyrus-imapd.idb
/
etc
/
init.d
/
cyrus-imap.z
/
cyrus-imap
Wrap
Text File
|
2001-07-06
|
668b
|
41 lines
#! /sbin/sh
#Tag 0x00000f00
# Start or stop the SGI Freeware Cyrus IMAP Server(s).
#
# $Id: apache,v 1.1 2000/05/11 07:26:30 vincel Exp $
TMPDIR=/var/tmp
export TMPDIR
IS_ON=/etc/chkconfig
CYRUS_DIR=/usr/freeware/cyrus
MASTER=${CYRUS_DIR}/bin/master
if $IS_ON verbose; then
ECHO=echo
else
# For a quiet startup and shutdown
ECHO=:
fi
case "$1" in
'start')
if ${IS_ON} cyrus-imap && test -x ${MASTER}; then
$ECHO "Starting SGI Freeware Cyrus IMAP Server(s)."
$MASTER &
fi
;;
'stop')
if test -x ${MASTER}; then
$ECHO "Stopping SGI Freeware Cyrus IMAP Server(s)."
/sbin/killall -TERM master
fi
;;
*)
echo "usage: $0 {start|stop}"
;;
esac